#ifndef cGET_H_
#define cGET_H_
/*********************************************************/
class cMsg;

#include "cMsg.h"
#include <Poco/DOM/NodeIterator.h>
#include <string>

#define MAX_BUFFER	4096		// Maximum allowed char buffer for command output
/*********************************************************/
class cGet : public cMsg
{
private:
	// Friend classes
	friend class cMsg;

	// Variables
	std::string		fFileName;		// Command to execute in the system shell
	std::string		fHost;			// The host who wishes to receive the file

	// Methods
	void deserialize(Poco::XML::NodeIterator&);	// Deserializes an execute job

protected:
public:
	// Control Methods
	virtual std::string serialize() const;		// Serialize the job to an xml string
	virtual void execute();

	// Data control methods
	void setFileName(const std::string&);
	std::string getFileName() const;
	void setHost(const std::string&);
	std::string getHost() const;

	// Construction & Destruction
	cGet() {};
	~cGet() {};
};
/*********************************************************/
#endif // cGET_H_
